Skip to content

migrate sphinx mathjax from jsdelivr to cdnjs#1669

Merged
wanghan-iapcm merged 1 commit into
deepmodeling:develfrom
njzjz:remove_jsdelivr
Apr 29, 2022
Merged

migrate sphinx mathjax from jsdelivr to cdnjs#1669
wanghan-iapcm merged 1 commit into
deepmodeling:develfrom
njzjz:remove_jsdelivr

Conversation

@njzjz

@njzjz njzjz commented Apr 29, 2022

Copy link
Copy Markdown
Member

jsdelivr, which is the default mathjax path in the sphinx, has been blocked in China. See jsdelivr/jsdelivr#18392. Of course, we hope our rendered equations can be shown in China.

jsdelivr, which is the default mathjax path in the sphinx, has been blocked in China. See jsdelivr/jsdelivr#18392. Of course, we hope our rendered equations can be shown in China.
@wanghan-iapcm

Copy link
Copy Markdown
Collaborator

How about the speed of rendering outside China?

@wanghan-iapcm wanghan-iapcm merged commit edfef49 into deepmodeling:devel Apr 29, 2022
@hifocus

hifocus commented Apr 29, 2022

Copy link
Copy Markdown

jsdelivr, which is the default mathjax path in the sphinx, has been blocked in China. See jsdelivr/jsdelivr#18392. Of course, we hope our rendered equations can be shown in China.

Just out of interst, why not consider cdnjs mirrors available in China while having excellent global speeds, such as https://cdn.baomitu.com and https://cdn.bytedance.com

The cdnjs experience in China is defintely not great

@njzjz njzjz deleted the remove_jsdelivr branch April 29, 2022 18:54
@njzjz

njzjz commented Apr 29, 2022

Copy link
Copy Markdown
Member Author

It is amazing to know it's unblocked...

@njzjz

njzjz commented Apr 29, 2022

Copy link
Copy Markdown
Member Author

Just out of interst, why not consider cdnjs mirrors available in China while having excellent global speeds, such as https://cdn.baomitu.com and https://cdn.bytedance.com

@hifocus baomitu was down last year for two weeks (https://www.v2ex.com/t/758137).

There is no evidence showing Bytedance CDN has excellent global speeds... It looks like they only have one server outside China.
image

@hifocus

hifocus commented Apr 29, 2022

Copy link
Copy Markdown

Just out of interst, why not consider cdnjs mirrors available in China while having excellent global speeds, such as https://cdn.baomitu.com and https://cdn.bytedance.com

@hifocus baomitu was down last year for two weeks (https://www.v2ex.com/t/758137).

There is no evidence showing Bytedance CDN has excellent global speeds... It looks like they only have one server outside China. image

It was for ICP registration reasons.

For btyedance cdn, try s{1-4}.pstatp.com. If I remembered correctly, s1 was Aliyun global CDN, s2 was Wangsu, jsDelivr's China CDN provider in the past.

Regardless, cdnjs was like the worst option you could use, although asp.net is actually worse. It's important to use local CDNs given the internet environment in China.

@njzjz

njzjz commented Apr 29, 2022

Copy link
Copy Markdown
Member Author

More than half of readers to our doc are outside the mainland China, so we cannot improve performance in China by sacrificing the speed in other regions.

@hifocus

hifocus commented Apr 29, 2022

Copy link
Copy Markdown

More than half of readers to our doc are outside the mainland China, so we cannot improve performance in China by sacrificing the speed in other regions.

Exactly, that's why my recommendations are globally optimised CDNs, including China and the world.

However I do respect your thoughts and ideas; therefore please only took my view as a friendly advice :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants